<?php
    header('Content-type:text/json');
    require "../connection.php";
    $goods_id = $_POST['goods_id'];
    $user_id = $_POST['user_id'];
     $sql = "update cart set status = 0 where goods_id = '$goods_id' and user_id = '$user_id'";
    $result = $conn->doSql($sql);
      echo json_encode($result);
?>